package com.imageim.yimirror.service.comm;

import com.imageim.yimirror.base.BaseApplication;
import com.imageim.yimirror.common.network.NetUtil;
import com.imageim.yimirror.common.network.constants.NetConstants;
import com.imageim.yimirror.common.network.tool.ParamCreator;
import com.imageim.yimirror.common.util.AppUtil;

import org.apache.http.message.BasicNameValuePair;

import java.util.List;

/**
 * Created by Bruce.Zhou on 2018/8/16 15:12.
 * Email: 907160968@qq.com
 */

public class CommonNetUtil {

    public static void uploadAppInfo() {
        List<BasicNameValuePair> params = new ParamCreator().add("appType", "1")
                .add("appVersion", "" + AppUtil.getVersionCode(BaseApplication.getContext())).build();
        NetUtil.postObject(BaseApplication.getContext(), NetConstants.URL.UPLOAD_APP_INFO, params, null);
    }
}
